package cn.sczhyt.modules.app.controller;

import cn.sczhyt.common.utils.PageUtils;
import cn.sczhyt.common.utils.R;
import cn.sczhyt.modules.app.annotation.Login;
import cn.sczhyt.modules.app.annotation.LoginUser;
import cn.sczhyt.modules.app.entity.UserEntity;
import cn.sczhyt.modules.szhy.entity.MeetingDinnerEntity;
import cn.sczhyt.modules.szhy.service.MeetingDinnerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * 会议晚宴
 *
 * @author luojialin
 * @email 78357966@qq.com
 * @date 2021-03-25 13:51:48
 */
@Api(tags = "APP查看晚宴安排")
@RestController
@RequestMapping("app/meetingdinner")
public class AppMeetingDinnerController {
    @Autowired
    private MeetingDinnerService meetingDinnerService;

    /**
     * 信息
     */
    @Login
    @ApiOperation("晚宴安排列表")
    @RequestMapping("/info/{meetingId}")
    public R info(@PathVariable("meetingId") String meetingId){

        List<MeetingDinnerEntity> list = meetingDinnerService.getByMeetingId(meetingId);

        return R.ok().put("data", list);
    }


}
